﻿using System.Web;
using System.Web.Optimization;

namespace Main.Web
{
    public class BundleConfig
    {
        public static void RegisterBundles(BundleCollection bundles)
        {

            bundles.Add(new StyleBundle("~/css/bundle").Include(
                       "~/Content/bootstrap/css/bootstrap.min.css",
                       "~/Content/assets/css/main.css",
                       "~/Content/assets/css/plugins.css",
                       "~/Content/assets/css/responsive.css",
                       "~/Content/assets/css/icons.css"));

            bundles.Add(new ScriptBundle("~/js/bundle").Include(
                        
                         "~/Content/assets/js/libs/jquery-1.10.2.min.js"
                        , "~/Content/plugins/jquery-ui/jquery-ui-1.10.2.custom.min.js"
                        , "~/Content/bootstrap/js/bootstrap.min.js"
                        , "~/Content/assets/js/libs/lodash.compat.min.js"
                        
                        , "~/Content/plugins/touchpunch/jquery.ui.touch-punch.min.js"
                        , "~/Content/plugins/event.swipe/jquery.event.move.js"
                        , "~/Content/plugins/event.swipe/jquery.event.swipe.js"
                        
                        , "~/Content/assets/js/libs/breakpoints.js"
                        , "~/Content/plugins/respond/respond.min.js"
                        , "~/Content/plugins/cookie/jquery.cookie.min.js"
                        
                        , "~/Content/plugins/slimscroll/jquery.slimscroll.min.js"
                        , "~/Content/plugins/slimscroll/jquery.slimscroll.horizontal.min.js"
                        
                        , "~/Content/plugins/sparkline/jquery.sparkline.min.js"
                        
                        , "~/Content/plugins/daterangepicker/moment.min.js"
                        , "~/Content/plugins/daterangepicker/daterangepicker.js"
                        
                        //BlockUI plugin
                        , "~/Content/plugins/blockui/jquery.blockUI.min.js"

                        //DataTable
                        , "~/Content/plugins/datatables/jquery.dataTables.min.js"
                        , "~/Content/plugins/datatables/tabletools/TableTools.min.js"
                        , "~/Content/plugins/datatables/colvis/ColVis.min.js"
                        , "~/Content/plugins/datatables/DT_bootstrap.js"

                        //Select - dropdown plugin
                        , "~/Content/plugins/select2/select2.min.js"
                        , "~/Content/plugins/bootstrap-multiselect/bootstrap-multiselect.min.js"

                        //noty
                        , "~/Content/plugins/noty/jquery.noty.js"
                        , "~/Content/plugins/noty/layouts/top.js"
                        , "~/Content/plugins/noty/themes/default.js"

                        //Slim Progress Bars
                        , "~/Content/plugins/nprogress/nprogress.js"

                        //Bootbox
                        , "~/Content/plugins/bootbox/bootbox.js"

                        , "~/Content/assets/js/app.js"
                        , "~/Content/assets/js/plugins.js"
                        , "~/Content/assets/js/plugins.form-components.js"

                        //ui initializers
                        , "~/Content/assets/js/app_init.js"
                        
                        //unobtrusive validations
                        , "~/Scripts/jquery.validate.min.js"
                        , "~/Scripts/jquery.validate.unobtrusive.min.js"

                        //jquery validation - not working
                        //, "~/Content/plugins/validation/jquery.validate.min.js"
                        //, "~/Content/plugins/validation/additional-methods.min.js"

                        //, "~/Content/assets/js/angularjs/angular.min.js"
                        ));
             

            BundleTable.EnableOptimizations = true;
            bundles.FileSetOrderList.Clear();

            //bundles.Add(new StyleBundle("~/Asset/assets").IncludeDirectory("~/Asset/assets/css", "*.css"));

        }
    }
}